<?php

namespace App\Model\DesignPattern\Creational\Structural\Facade;


class ComputerFacade
{
    protected $computer;

    public function __construct(Computer $computer)
    {
        $this->computer = $computer;
    }

    public function turnOn()
    {
        $testTurnOn = '';
        $testTurnOn .= $this->computer->getElectricShock().'<br/>';
        $testTurnOn .= $this->computer->makeSound().'<br/>';
        $testTurnOn .= $this->computer->showLoadingScreen();
        $testTurnOn .= $this->computer->bam();
        return $testTurnOn;
    }
    public function turnOff()
    {
        $testTurnOff = '';
        $testTurnOff .= $this->computer->closeEverything().'<br/>';
        $testTurnOff .= $this->computer->pullCurrent().'<br/>';
        $testTurnOff .= $this->computer->sooth();
        return $testTurnOff;
    }
}
